package edu.cnu.tpts.bean;

import java.util.ArrayList;
import java.util.List;

import edu.cnu.tpts.dao.TeacherDao;
import edu.cnu.tpts.dao.impl.TeacherDaoImpl;

/**
 * 教师类
 *
 */
public class Teacher {

	private int id; //教师ID
	private String realName; //教师姓名
	private String loginName; //教师登录名
	private String password; //密码
	private String sex; //性别
	private String teaDepartment; //教师所在院系
	private List<Course> course=new ArrayList<Course>(); //课程名称
	//其他封装属性
	private String courseName;
	
	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getTeaDepartment() {
		return teaDepartment;
	}

	public void setTeaDepartment(String teaDepartment) {
		this.teaDepartment = teaDepartment;
	}


	public List<Course> getCourse() {
		TeacherDao teaDao = new TeacherDaoImpl();
		return teaDao.getTeacheCourse(this);
		
	}

	public void setCourse(List<Course> course) {
		this.course = course;
	}

}
